/* 
 * File:   main.cpp
 * Author: root
 *
 * Created on 6 listopad 2011, 09:41
 */




#include "Debugging.h"
#include "AllocatorStlType.h"
#include "AllocatorPoolBased.h"
#include "AllocatorHeapBased.h"

#include "Handle.h"
#include "Handles.h"


#include "MemoryManagerForAllocatorPoolBased.h"

#include <vector>



#include <cstdlib>
#include <iostream>
using namespace std;

/*
 * 
 */
int main(int argc, char** argv)
{



    static const unsigned int _byteAlignment=64;
    static const unsigned int _howManyAllocated=10;


    AllocatorHeapBased alloc(_howManyAllocated*sizeof(int),_howManyAllocated,_byteAlignment);

    for(int i=0;i<_howManyAllocated;i++)
    {
        void* pointer=alloc.allocate(sizeof(int));
        if(!(pointer==ALLIGNUP(pointer,_byteAlignment)))
            cout<<endl<<"error";
    }





   
    cout<<endl;
    return 0;
}
